<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <meta http-equiv="content-language" content="zh-CN" />
    <title>类型主页</title>
    <link rel="stylesheet" type="text/css"  href="/general/testzs/public/static/layui/css/layui.css">
    <link rel="stylesheet" type="text/css"  href="/general/testzs/public/static/layui/css/customer.css">

</head>
<body>
<button class="layui-btn" style="margin: 0.5rem;float: right" id="add_type" >添加类别</button>
<table style="clear:both" id="demo" lay-filter="test"></table>

<script type="text/html" id="addTypeHtml">
    <form id="" lay-filter="modelSubmitAddType"  class="layui-form model-form">
        <div class="layui-inline layui-col-md10  layui-form-item">
            <label class="layui-form-label">类别名称:</label>
            <div class="layui-input-block">
                <input name="type_name"  placeholder="输入类别名称" class="layui-input"
                       lay-verType="tips" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-inline layui-col-md10 layui-form-item">
            <label class="layui-form-label">排序:</label>
            <div class="layui-input-block">
                <input name="order" type="number"  placeholder="输入排序数字(不可重复)" class="layui-input" lay-verType="tips" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item layui-inline ">
            <button class="layui-btn" lay-filter="modelSubmitAddType" type="submit" lay-submit>添加</button>
        </div>
    </form>
</script>

<script type="text/html" id="barDemo">
    <a class="layui-btn layui-btn-mini" lay-event="edit">编辑</a>
    <a class="layui-btn layui-btn-danger layui-btn-mini" lay-event="del">删除</a>
</script>

<script type="text/html" id="updateHtml">
    <form  lay-filter="modelSubmitEdit"  class="layui-form model-form">
        <div class="layui-inline layui-col-md10  layui-form-item">
            <label class="layui-form-label">类别名称:</label>
            <div class="layui-input-block">
                <input name="type_name" id="type_name" placeholder="输入类别名称" class="layui-input"
                       lay-verType="tips" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-inline layui-col-md10 layui-form-item">
            <label class="layui-form-label">排序:</label>
            <div class="layui-input-block">
                <input name="order" id="order" type="number"  placeholder="输入排序数字(不可重复)" class="layui-input" lay-verType="tips" lay-verify="required" required/>
            </div>
        </div>

        <input type="hidden" name="type_id" id="type_id">
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-filter="modelSubmitEdit" type="submit" lay-submit>修改</button>
            </div>
        </div>
    </form>
</script>



</body>
<script charset="utf-8" src="/general/testzs/public/static/layui/layui.all.js" ></script>
<script charset="utf-8" src="/general/testzs/public/static/layui/trip/jquery.min.js"></script>
<script charset="utf-8" src="/general/testzs/public/static/printing/type/index.js?v=2" ></script>
</html>
